package com.config;

import com.entity.Students;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("com")
@EnableAspectJAutoProxy //表示启用aspectJ
public class SpringConfiguration {

    @Bean("s1")
    public Students getStudente1(){
        return  new Students("s002","李四","男","软件工程");
    }
}
